package com.cn.common.topic;

public class TopicData {

    private String topic;

    /**
     * 读队列数
     */
    private int writeNum;

    /**
     * 写队列数
     */
    private int readNum;

    public TopicData() {
    }

    public TopicData(String topic, int writeNum, int readNum) {
        this.topic = topic;
        this.writeNum = writeNum;
        this.readNum = readNum;
    }

    public String getTopic() {
        return topic;
    }

    public TopicData setTopic(String topic) {
        this.topic = topic;
        return this;
    }

    public int getWriteNum() {
        return writeNum;
    }

    public TopicData setWriteNum(int writeNum) {
        this.writeNum = writeNum;
        return this;
    }

    public int getReadNum() {
        return readNum;
    }

    public TopicData setReadNum(int readNum) {
        this.readNum = readNum;
        return this;
    }

    @Override
    public String toString() {
        return "TopicData{" +
                "topic='" + topic + '\'' +
                ", writeNum=" + writeNum +
                ", readNum=" + readNum +
                '}';
    }
}
